package com.neusoft.oop;

public class Animal {
	//属性
	//姓名
	private String animalName;
	//种类
	private String animalSpecies;
	//年龄
	private double animalAge;
	//性别
	private String animalGender;
	//颜色
	private String animalColor;
	//食物种类
	private String[] animalFood;
	//生活范围
	private String animalArea;
	
	
	
	//行为
	/**
	 * 巡视领土
	 */
	public void walkaround() {
		System.out.println("animal is walkaround"+animalArea);
	}
	/**
	 * 吃
	 * 捕食 喂食
	 */
	public void eat() {
		System.out.println("animal eat...");
	}
	
	/**
	 * 睡
	 */
	public void sleep() {
		System.out.println("animal sleep...");
	}
	
	/**
	 * 跑
	 */
	public void run() {
		System.out.println("animal run...");
	}
	
	/**
	 * 散步
	 */
	public void walk() {
		System.out.println("animal walk...");
	}
	
	/**
	 * 玩
	 */
	public void play() {
		System.out.println("animal play...");
	}
	
	/**
	 * 打印动物能吃的食物
	 */
	public void printfood() {
		System.out.println("the food list of animal can eat:");
		for(int i = 0;i<animalFood.length;i++) {
			System.out.println();
		}
	}
	
	
	
	////////////////////////////////////////////////

	public Animal() {
		super();
	}

	public Animal(String animalName) {
		super();
		this.animalName = animalName;
	}

	public Animal(String animalName, String animalSpecies) {
		super();
		this.animalName = animalName;
		this.animalSpecies = animalSpecies;
	}

	public Animal(String animalName, String animalSpecies, double animalAge) {
		super();
		this.animalName = animalName;
		this.animalSpecies = animalSpecies;
		this.animalAge = animalAge;
	}

	public Animal(String animalName, String animalSpecies, double animalAge, String animalGender) {
		super();
		this.animalName = animalName;
		this.animalSpecies = animalSpecies;
		this.animalAge = animalAge;
		this.animalGender = animalGender;
	}

	public String getAnimalName() {
		return animalName;
	}

	public void setAnimalName(String animalName) {
		this.animalName = animalName;
	}

	public String getAnimalSpecies() {
		return animalSpecies;
	}

	public void setAnimalSpecies(String animalSpecies) {
		this.animalSpecies = animalSpecies;
	}

	public double getAnimalAge() {
		return animalAge;
	}

	public void setAnimalAge(double animalAge) {
		this.animalAge = animalAge;
	}

	public String getAnimalGender() {
		return animalGender;
	}

	public void setAnimalGender(String animalGender) {
		this.animalGender = animalGender;
	}

	public String[] getAnimalFood() {
		return animalFood;
	}

	public void setAnimalFood(String[] animalFood) {
		this.animalFood = animalFood;
	}

	public String getAnimalArea() {
		return animalArea;
	}

	public void setAnimalArea(String animalArea) {
		this.animalArea = animalArea;
	}

	public String getAnimalColor() {
		return animalColor;
	}

	public void setAnimalColor(String animalColor) {
		this.animalColor = animalColor;
	}
	
	
	

}
